import React from "react"
import {Link} from 'react-router-dom'
export default class ProRouteDetailRoute extends React.Component {
    constructor() {
        super()
        this.state = {
            list:[
                {id:1},
                {id:2},
                {id:3}
            ]
        }
    }
    render() {
        return (
            <div>
                欢迎来到详情页
                <ul>
                    {this.state.list.map(item=>{return (
                        <li key={item.id}> <Link to={`/detailindex/?id=${item.id}`}>{item.id}</Link></li>
                    )
                    })}
                </ul>
            </div>
        )
    }
}